<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>HTML5的新特性 - 将大量的数据保存在客户端</title>
	</head>
	<body>
		<script type="text/javascript">
			//用localStorage来保存数据
			localStorage.key = '想要保存的值';
			
			//将localStorage中的值取出来
			var hoge = localStorage.key;
			
			//"想要保存的值"在页面上显示
			document.write(hoge);
		</script>
	</body>
</html>
